/*
 *  Filename: i2c.h
 *  Fuction: STM32F103 i2c header file
 *  Created: 2017-06-13
 *  Version: 1.0
 *  Author: Bin
 */

#ifndef I2C_H
#define I2C_H

/*-------- Exported functions --------*/
void I2C_Init(void);
void I2C_Start(void);
void I2C_Stop(void);
uint8_t I2C_WaitAck(void);
void I2C_Ack(void);
void I2C_NAck(void);
void I2C_WriteByte(uint8_t data);
uint8_t I2C_ReadByte(uint8_t ack);

#endif
